package org.hcyspartnoc.demo.pojo.po.college;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@NoArgsConstructor
@TableName("college")
public class CollegePo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L; // 自定义序列化ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 匹配数据库中的id字段，注意这里使用Integer而不是int，以支持null值

    @TableField("college_name")
    private String collegeName;

    @TableField("college_manager_id")
    private Integer collegeManagerID;

}
